Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the builderResultCache of ExecutionLayerBlockProductionManagerImpl #8766

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

david-ry4n
Copy link
Contributor

PR Description

Change the builderResultCache of ExecutionLayerBlockProductionManagerImpl keys from slot to SlotAndBlockRoot. This allows the cache to return proposals based on slot and block root, which is required if there's multiple operators requesting different beacon block proposals. Using slotAndBlockRoot to allow the onSlot function to continue to clear key/value pairs from prior slots.

fixes #8625

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

…Impl keys from slot to SlotAndBlockRoot. This allows the cache to return proposals based on slot and block root, which is required if there's multiple operators requesting different beacon block proposals.
Copy link
Contributor

@StefanBratanov StefanBratanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with couple of nits. There are few other changes which I observed that needs to be changed. Can discuss tomorrow. For the moment, can change fixes to related to, since there would be need of subsequent PRs.

Copy link
Contributor

@StefanBratanov StefanBratanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@david-ry4n david-ry4n merged commit 21efe6e into Consensys:master Oct 23, 2024
17 checks passed
@david-ry4n david-ry4n deleted the update-block-caching branch October 23, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SSV] Fix cache behaviour when requesting blocks in parallel
2 participants